package com.yorick.authority.modal.request.role;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class RoleEditRequest extends RoleAddRequest {
        @JsonProperty("roleId")
        @NotNull
        private int roleId;
        @JsonProperty("enabled")
        @Max(1)
        private int enabled;
}
